package com.zx.springcloud.service.impl;


import com.zx.springcloud.dao.PaymentDao;
import com.zx.springcloud.entity.Payment;
import com.zx.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author ZX
 * @date 2021/3/2
 */
@Service
public class PaymentServiceImpl  implements PaymentService
{


    @Resource
    private PaymentDao paymentDao;

    @Override
    public int insert(Payment payment)
    {
        return  paymentDao.insert(payment);
    }

    @Override
    public Payment getPaymentById(Long id)
    {
        return paymentDao.getPaymentById(id);
    }
}
